//
// Created by liushuai on 18-8-7.
//

#include "Person.hpp"
#include <iostream>
#include <string>
Person::Person(std::string n, int a) :name(n),age(a) {};
int Person::get_age() const {return age;}
std::string Person::get_name() const {return name;}
std::ostream & operator<<(std::ostream &os, const Person &p) {
    std::cout<<"Name: "<<p.get_name() ;
    std::cout<<" Age: "<<p.get_age();
    return os;
}
Person Person::operator=(const Person &p) {
    if(this == &p)
        return *this;
    name = p.name;
    age = p.age;
    return *this;
}
Person::~Person() {}